import { request } from '@umijs/max';
export async function queryDictTypeTree(){
    return request('/dict-type/query/tree',{
        method: 'GET',
    })
}
export async function createDictType(form){
    return request('/dict-type/create',{
        method: 'POST',
        data: form,
        headers: {
            'Content-Type': 'application/json',
          },
    })
}
export async function updateDictType(form){
    return request('/dict-type/update',{
        method: 'POST',
        data: form,
        headers: {
            'Content-Type': 'application/json',
          },
    })
}
export async function deleteDictType(form){
    return request('/dict-type/delete',{
        method: 'POST',
        data: form,
        headers: {
            'Content-Type': 'application/json',
          },
    })
}
export async function queryDictTypeEnableList(){
    return request('/dict-type/query/enabled/list',{
        method: 'GET',
    })
}